//客户端版本1

#include <stdio.h>

int main(int ac, char *av[])
{
    setup();

    if (get_ticket() != 0){
       exit(0); 
    }
        

    do_regular_work();

    release_ticket();

    shut_down();
}

void do_regular_work()
{
    printf("gogogo\n");
    sleep(10);
}